package com.zyy.game.tianlong.entity;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * @author relufi
 * @date 2019/8/14 0014
 */
@Getter
@ToString
@EqualsAndHashCode
@AllArgsConstructor
public class GamePlayer {
    private final Integer playerId;

    private final String openId;

    private final String phone;

    public static GamePlayer convertPlayer(Player player) {
        return new GamePlayer(player.getPlayerId(),player.getOpenId(),player.getPhone());
    }
}
